module.exports = function (grunt) {
	// body...

	grunt.initConfig({
		// pkg: grunt.file.readJSON('package.json'),

		// jshint: {
		//   // define the files to lint
		//   files: ['Gruntfile.js', 'public/js/*.js', 'models/**/*.js', 'schemas/**/*.js'],
		//   // configure JSHint (documented at http://www.jshint.com/docs/)
		//   options: {
		//     // more options here if you want to override JSHint defaults
		//     globals: {
		//       jQuery: true,
		//       console: true,
		//       module: true
		//     }
		//   }
		// },

		watch: {
			options: {
				livereload: true
			},
			jade: {
				files: ['views/**']
			},
			js: {
				files: ['models/*.js', 'schemas/*.js']
				// tasks: ['jshint']
			}
		},

		nodemon: {
			dev: {
				options: {
					files: 'app.js',
					// args: [],
					ignoredFiles: ['readme.md', 'node_modules/**', '.DS_Store'],
					watchedExtensions: ['js'],
					watchedFolders: ['app'],
					debug: true,
					delayTime: 1,
					env: {
						PORT: 3000
					},
					cwd: __dirname
				}
			}
		},

		concurrent: {
			tasks: ['nodemon', 'watch'],
			options: {
				logConcurrentOutput: true
			}
		}
	})

	grunt.loadNpmTasks('grunt-contrib-jshint')
	grunt.loadNpmTasks('grunt-contrib-watch')
	grunt.loadNpmTasks('grunt-nodemon')
	grunt.loadNpmTasks('grunt-concurrent')

	grunt.option('force', true)
	grunt.registerTask('default', ['concurrent'])
}